<template>
  <el-card>
    <div class="box-card">
      <div class="icon">
        <i :class="data.icon" />
      </div>
      <div class="content">
        <div class="content-title">{{data.title}}</div>
        <div class="content-total">{{data.total}}</div>
      </div>
    </div>
  </el-card>
</template>

<script>
export default {
  props: ["data"],
};
</script>

<style lang="scss">
.box-card {
  display: flex;
  padding: 20px 0;
  .icon {
    font-size: 40px;
  }
  .content {
    padding-left: 30px;
    .content-total {
      padding-top: 10px;
    }
  }
}
</style>